package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;

public class AttendanceSummaryQueryActicity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    String name = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_STAFF_NAME);
    String start = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_BEGIN_DATE);
    String end = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_END_DATE);
    String from = getIntent().getStringExtra(AttendanceSummaryQueryFragment.VALUE_FROM);
    String jobNos = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_JOB_NUMBER);
    String typeCode = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_TYPE_CODE);
    String typeName = getIntent().getStringExtra(AttendanceSummaryQueryFragment.REQUEST_TYPE_NAME);

    return AttendanceSummaryQueryFragment.newInstance(name, start, end, from, typeName, typeCode,
        jobNos);
  }
}
